const expressJwt = require("express-jwt")
const secret = require("./secret")

const jwtAuth = expressJwt({
    secret,
    algorithms: ["HS256"]
}).unless({
    path: ["/users/login", "users/register"]
})

module.exports = jwtAuth